# Source https://github.com/openshift/openstack-cinder-csi-driver-operator/blob/master/assets/volumesnapshotclass.yaml
{{- if (.Values.global.enabledModules | has "snapshot-controller") }}
---
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass
metadata:
  {{- include "helm_lib_module_labels" (list . (dict "app" "cinder-csi-driver")) | nindent 2 }}
  name: openstack
driver: cinder.csi.openstack.org
deletionPolicy: Delete
{{- end }}
